<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="layout" content="bolao" />
     <g:set var="entityName" value="${message(code: 'cup.label', default: 'Cup')}" />
  <title><g:message code="default.create.label" args="[entityName]" /></title>
</head>
<body>
  <div class="body">
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <g:hasErrors bean="${cup}">
      <div class="errors">
        <g:renderErrors bean="${cup}" as="list" />
      </div>
    </g:hasErrors>
    <g:form action="save" method="post" >
      <div class="dialog">
        <fieldset>
          <legend><g:message code="default.create.label" args="[entityName]" /></legend>
          <table>
            <tbody>
              <tr class="prop">
                <td valign="top" class="name">
                  <label for="year"><g:message code="cup.year.label" default="Year" /></label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: cup, field: 'year', 'errors')}">
                  <g:textField name="year" value="${fieldValue(bean: cup, field: 'year')}" />
                </td>
              </tr>
              <tr class="prop">
                <td valign="top" class="name">
                  <label for="venue"><g:message code="cup.venue.label" default="Venue" /></label>
                </td>
                <td valign="top" class="value ${hasErrors(bean: cup, field: 'venue', 'errors')}">
                  <g:textField name="venue" maxlength="50" value="${cup?.venue}" />
                </td>
              </tr>
            </tr>
            </tbody>
          </table>
        </fieldset>
      </div>
      <div class="buttons">
        <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
      </div>
    </g:form>
  </div>
</body>
</html>
